Goto

Collaborating Authors

 peaky behavior


A Differentiable Alignment Framework for Sequence-to-Sequence Modeling via Optimal Transport

arXiv.org Machine Learning

Accurate sequence-to-sequence (seq2seq) alignment is critical for applications like medical speech analysis and language learning tools relying on automatic speech recognition (ASR). State-of-the-art end-to-end (E2E) ASR systems, such as the Connectionist Temporal Classification (CTC) and transducer-based models, suffer from peaky behavior and alignment inaccuracies. In this paper, we propose a novel differentiable alignment framework based on one-dimensional optimal transport, enabling the model to learn a single alignment and perform ASR in an E2E manner. We introduce a pseudo-metric, called Sequence Optimal Transport Distance (SOTD), over the sequence space and discuss its theoretical properties. Based on the SOTD, we propose Optimal Temporal Transport Classification (OTTC) loss for ASR and contrast its behavior with CTC. Experimental results on the TIMIT, AMI, and LibriSpeech datasets show that our method considerably improves alignment performance, though with a trade-off in ASR performance when compared to CTC. We believe this work opens new avenues for seq2seq alignment research, providing a solid foundation for further exploration and development within the community.


Less Peaky and More Accurate CTC Forced Alignment by Label Priors

arXiv.org Artificial Intelligence

Connectionist temporal classification (CTC) models are known to have peaky output distributions. Such behavior is not a problem for automatic speech recognition (ASR), but it can cause inaccurate forced alignments (FA), especially at finer granularity, e.g., phoneme level. This paper aims at alleviating the peaky behavior for CTC and improve its suitability for forced alignment generation, by leveraging label priors, so that the scores of alignment paths containing fewer blanks are boosted and maximized during training. As a result, our CTC model produces less peaky posteriors and is able to more accurately predict the offset of the tokens besides their onset. It outperforms the standard CTC model and a heuristics-based approach for obtaining CTC's token offset timestamps by 12-40% in phoneme and word boundary errors (PBE and WBE) measured on the Buckeye and TIMIT data. Compared with the most widely used FA toolkit Montreal Forced Aligner (MFA), our method performs similarly on PBE/WBE on Buckeye, yet falls behind MFA on TIMIT. Nevertheless, our method has a much simpler training pipeline and better runtime efficiency. Our training recipe and pretrained model are released in TorchAudio.


Improving Frame-level Classifier for Word Timings with Non-peaky CTC in End-to-End Automatic Speech Recognition

arXiv.org Artificial Intelligence

In E2E systems, word timings can be estimated by the forced alignment results of character-level CTC models, where End-to-end (E2E) systems have shown comparable performance the CTC peak of the first character indicate the word start time to hybrid systems for automatic speech recognition and the CTC peak of the last character indicate the word end (ASR). Word timings, as a by-product of ASR, are essential time [9]. The CTC model cannot estimate word timings well in many applications, especially for subtitling and computeraided when the duration of the modeling unit is relatively long, e.g., pronunciation training. In this paper, we improve the Chinese characters. Because the blank probability of CTC frame-level classifier for word timings in E2E system by introducing model is dominant in almost all frames, and the non-blank probability label priors in connectionist temporal classification is only relatively high in few frames. This is called the (CTC) loss, which is adopted from prior works, and combining peaky behavior [10]. CTC-based alignments for word timings low-level Mel-scale filter banks with high-level ASR encoder can be improved by alleviating the peaky behavior [11, 12], output as input feature. On the internal Chinese corpus, but these methods have complicated regularization terms which the proposed method achieves 95.68%/94.18%


Why does CTC result in peaky behavior?

arXiv.org Artificial Intelligence

The peaky behavior of CTC models is well known experimentally. However, an understanding about why peaky behavior occurs is missing, and whether this is a good property. We provide a formal analysis of the peaky behavior and gradient descent convergence properties of the CTC loss and related training criteria. Our analysis provides a deep understanding why peaky behavior occurs and when it is suboptimal. On a simple example which should be trivial to learn for any model, we prove that a feed-forward neural network trained with CTC from uniform initialization converges towards peaky behavior with a 100% error rate. Our analysis further explains why CTC only works well together with the blank label. We further demonstrate that peaky behavior does not occur on other related losses including a label prior model, and that this improves convergence.